home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / submarine_effects_scripts / submarine_shot_explosion.lua next >
Encoding:
Text File  |  2007-01-25  |  3.4 KB  |  134 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_SUBMARINESHOT_EXPLOSION)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  9. desc.LocalPosition = vzbzd1
  10. vzbzd1:delete()
  11. desc.isAnimateTexture = false
  12. desc.RenderType = ENRENDERTYPE_GEOMETRY
  13.  
  14. Emitter = desc.PS.PSDescription
  15. Emitter.ParticleTypesNumber = 1
  16. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  17. Emitter.EmitterPosition = vzbzd2
  18. vzbzd2:delete()
  19. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  20. Emitter.EmitterDirection = vzbzd3
  21. vzbzd3:delete()
  22. Emitter.EmitterLifeTime = 1
  23.  
  24. PT = Emitter.ParticleTypesParams[1]
  25. PT.IsEmitterLocked = false
  26. PT.DrawOrder = 2
  27. PT.Material = ENMAT_PARTICLE_LIGHT
  28.  
  29.  
  30. PT.TextureName = "cruiser_effect_smokecloud7.dds"
  31.  
  32. PT.ParticlesPerSecond = 0.1;
  33. PT.InitialNumberOfParticles = 5.0;
  34. PT.BaseLifeTime = 1.5;
  35. PT.BaseLifeTimeVariance = 0.0;
  36. PT.BaseSpeed = 0.0;
  37. PT.BaseSpeedVariance = 0.0;
  38. PT.BaseAngle = 1.65;
  39. PT.BaseAngleVariance = 2.0;
  40. PT.BaseAngleSpeed = 0.0;
  41. PT.BaseAngleSpeedVariance = 0.0;
  42. PT.BaseAngleSpeedDirection = 0;
  43. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,1.0)
  44. PT.BaseDirection = vzbzd4
  45. vzbzd4:delete()
  46. local vzbzd5 = D3DXVECTOR3:new(2.0,2.0,2.0)
  47. PT.BaseDirectionVariance = vzbzd5
  48. vzbzd5:delete()
  49. local vzbzd6 = D3DXVECTOR3:new(0,5,0)
  50. PT.BasePosition = vzbzd6
  51. vzbzd6:delete()
  52. local vzbzd7 = D3DXVECTOR3:new(8.0,8.0,8)
  53. PT.BasePositionVariance = vzbzd7
  54. vzbzd7:delete()
  55. PT.BaseSize = 2.0;
  56. PT.BaseSizeVariance = 1.0;
  57.  
  58. -- color over time
  59. PT.ColorOverTimeR[1].TimePercent = 0.0;
  60. PT.ColorOverTimeR[1].Value = 0.5;
  61. PT.ColorOverTimeG[1].TimePercent = 0.0;
  62. PT.ColorOverTimeG[1].Value = 0.5;
  63. PT.ColorOverTimeB[1].TimePercent = 0.0;
  64. PT.ColorOverTimeB[1].Value = 0.5;
  65.  
  66. PT.ColorOverTimeR[2].TimePercent = 1.0;
  67. PT.ColorOverTimeR[2].Value = 0.5;
  68. PT.ColorOverTimeG[2].TimePercent = 1.0;
  69. PT.ColorOverTimeG[2].Value = 0.5;
  70. PT.ColorOverTimeB[2].TimePercent = 1.0;
  71. PT.ColorOverTimeB[2].Value = 0.5;
  72.  
  73. -- transparency over time
  74. PT.TransparencyOverTime[1].TimePercent = 0.0;
  75. PT.TransparencyOverTime[1].Value = 1.0;
  76.  
  77. PT.TransparencyOverTime[2].TimePercent = 0.04;
  78. PT.TransparencyOverTime[2].Value = 1.0;
  79.  
  80. PT.TransparencyOverTime[3].TimePercent = 1.0;
  81. PT.TransparencyOverTime[3].Value = 0.0;
  82.  
  83.  
  84. -- size over time
  85. PT.SizeOverTime[1].TimePercent = 0.0;
  86. PT.SizeOverTime[1].Value = 1.0;
  87.  
  88. PT.SizeOverTime[2].TimePercent = 0.04;
  89. PT.SizeOverTime[2].Value = 5.0;
  90.  
  91. PT.SizeOverTime[3].TimePercent = 1.0;
  92. PT.SizeOverTime[3].Value = 8.0;
  93.  
  94.  
  95. -- Speed over time
  96. PT.SpeedOverTime[1].TimePercent = 0.0;
  97. PT.SpeedOverTime[1].Value = 0.0;
  98.  
  99. PT.SpeedOverTime[2].TimePercent = 1.0;
  100. PT.SpeedOverTime[2].Value = 0.0;
  101.  
  102. -- Tangent Speed over time
  103. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  104. PT.TangentSpeedOverTime[1].Value = 0.0;
  105.  
  106. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  107. PT.TangentSpeedOverTime[2].Value = 0.0;
  108.  
  109.  
  110. -- GravityAcceleration over time
  111. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  112. PT.GravityAccelerationOverTime[1].Value = 1.0;
  113.  
  114. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  115. PT.GravityAccelerationOverTime[2].Value = 1.0;
  116.  
  117. -- AngleSpeed over time
  118. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  119. PT.AngleSpeedOverTime[1].Value = 1.0;
  120.  
  121. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  122. PT.AngleSpeedOverTime[2].Value = 1.0;
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.